package com.cskaoyan.controller.wxgoods;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.vo.wxgoods.*;
import com.cskaoyan.service.wxgoods.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Ajun de BBC
 * @Date 2022/7/19 16:43
 * @Version 1.5
 */
@RequestMapping("wx/home")
@RestController
public class WxHomeController {


    @Autowired
    WxHomeService wxHomeService;

    @RequestMapping("index")
    public BaseRespVo homeIndex(){
        HomeIndexVo homeIndexVo = wxHomeService.homeIndexSelectAll();
        return BaseRespVo.ok(homeIndexVo,"成功",0);
    }

    @GetMapping("about")
    public BaseRespVo printAbout() {
        WxHomeAboutVO wxHomeAboutVO = new WxHomeAboutVO();
        return BaseRespVo.ok(wxHomeAboutVO);
    }
}
